package com.sc.pattern.readwrite;

/**
 * Created  on 2018/1/7.
 *
 * @author sc
 */
public class Client {
    public static void main(String[] args) {
        final SharedData data = new SharedData(10);
        new ReadWorker(data).start();
        new ReadWorker(data).start();
        new ReadWorker(data).start();
        new ReadWorker(data).start();
        new ReadWorker(data).start();
        new WriteWorker(data,"1232131231").start();
        new WriteWorker(data,"qweasdasda").start();
        new WriteWorker(data,"zxczxczxcz").start();

    }
}
